<%--
  Created by IntelliJ IDEA.
  User: TM
  Date: 10/1/12
  Time: 6:01 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--
<html>
  <head><title>Simple jsp page</title></head>
  <body>Place your content here</body>
</html>--%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="description" content="Reflect Template"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <title>User Login</title>
    <%--<link href="css/main.css" rel="stylesheet" type="text/css"/>--%>
    <link rel="stylesheet" href="css/style_all.css" type="text/css" media="screen"/>


    <!-- to choose another color scheme uncomment one of the foloowing stylesheets and wrap styl1.css into a comment -->
    <link rel="stylesheet" href="css/style1.css" type="text/css" media="screen"/>

    <!--
   <link rel="stylesheet" href="css/style2.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style3.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style4.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style5.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style6.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style7.css" type="text/css" media="screen" />
    -->


    <link rel="stylesheet" href="css/jquery-ui.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="css/jquery.wysiwyg.css" type="text/css" media="screen"/>

    <!--Internet Explorer Trancparency fix-->
    <!--[if IE 6]>
    <script src="js/ie6pngfix.js"></script>
    <script>
        DD_belatedPNG.fix('#head, a, a span, img, .message p, .click_to_close, .ie6fix');
    </script>
    <![endif]-->

    <script type='text/javascript' src='js/jquery.js'></script>
    <script type='text/javascript' src='js/jquery-ui.js'></script>
    <script type='text/javascript' src='js/jquery.wysiwyg.js'></script>
    <script type='text/javascript' src='js/custom.js'></script>
</head>

<body class="nobackground">
<s:div id="login">


    <%--<!–see the following action in struts.xml. This login action will be processed by the class loginActionClass, which is configured in applicationContext.xml. The user input information will be passed to class loginActionClass, and user name and password will be setted by setName and setPassword methods. Also, the userService will be injected by Spring, see LoginAction.java below–->
    <!–<action name="loginUser" class="loginActionClass" method="loginUser">-–>
    <!–<result name = "success" type="redirect">/listNote.action</result>-–>
    <!–<result name = "input">/index.jsp</result>-–>
    <!–<result name = "error">/error.jsp</result>-–>
    <!–</action>–->--%>

    <s:actionerror/><%--<!– must use it, otherwise message will not show up –->--%>
    <h1 class="logo">
        <s:a href="">EPHR System</s:a>
    </h1>

    <h2 class="loginheading">Login</h2>
    <s:div class="icon_login ie6fix"></s:div>
    <s:form id="login-form" cssStyle="border:none" action="loginUser" method="POST">

        <s:textfield id="name" cssStyle="border:none" label="Name" labelposition="top" name="name" cssClass="input-medium"/>

        <s:password id="password" cssStyle="border:none" label="Password" labelposition="top" name="password" cssClass="input-medium"/>

        <s:submit cssClass="button" value="Login"></s:submit>
        <s:fielderror/>
        <s:actionerror/>
    </s:form>
</s:div>
<A href="register.jsp" title="sign up">New user sign up</A>
<A href="recover_password.jsp" title="recover my password">Forgot password?</A>
</body>
</html>
